/*
CREATE TABLE "base_jxpb" (
  "sequence_nbr" text(64) NOT NULL,
  "rcj_id" text(64) NOT NULL,
  "jx_code" text(255),
  "jx_name" text(255),
  "material_code" text(50),
  "kind" integer(255),
  "material_name" text(100),
  "specification" text(500),
  "unit" text(32),
  "res_qty" real(16,6),
  "de_price" real(16,6),
  "market_price" real(16,6),
  "rec_user_code" text(32),
  "rec_status" text(4),
  "rec_date" text(20),
  "extend1" text(64),
  "extend2" text(64),
  "extend3" text(64),
  "description" text(255),
  "agency_code" text(64),
  "product_code" text(64),
  "tax_removal" real(16,6),
  "library_code" text(255),
  "kind_sc" text(255),
  "transfer_factor" text(255),
  PRIMARY KEY ("sequence_nbr")
);
*/

use rbatis::crud;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct BaseJxpb {
    pub sequence_nbr: String,
    pub rcj_id: String,
    pub jx_code: Option<String>,
    pub jx_name: Option<String>,
    pub material_code: Option<String>,
    pub kind: Option<i32>,
    pub material_name: Option<String>,
    pub specification: Option<String>,
    pub unit: Option<String>,
    pub res_qty: Option<f64>,
    pub de_price: Option<f64>,
    pub market_price: Option<f64>,
    pub rec_user_code: Option<String>,
    pub rec_status: Option<String>,
    pub rec_date: Option<String>,
    pub extend1: Option<String>,
    pub extend2: Option<String>,
    pub extend3: Option<String>,
    pub description: Option<String>,
    pub agency_code: Option<String>,
    pub product_code: Option<String>,
    pub tax_removal: Option<f64>,
    pub library_code: Option<String>,
    pub kind_sc: Option<String>,
    pub transfer_factor: Option<String>,
}
crud!(BaseJxpb {}, "base_jxpb");
